#ifndef SHELL_LIST_H
#define SHELL_LIST_H

enum dtype_shell_list
{
	TYPE(SHELL_LIST)=0x5220,
};

enum subtype_shell_list
{
	SUBTYPE(SHELL_LIST,SCRIPT)=0x01,
	SUBTYPE(SHELL_LIST,CMD_UNIT),
	SUBTYPE(SHELL_LIST,CMD_SET)
};

typedef struct shell_list_script
{
    char * match_name;         
    char * user;
    char * script;        
    int delay;            
    char * next_match;        
    char * next_match_name;        
}__attribute__((packed)) RECORD(SHELL_LIST,SCRIPT);

typedef struct shell_list_cmd_unit
{
    char * item_name;         
    char * set_name;
    int seq_no;            
    char * cmd_line;
    int delay;            
    char * cmd_desc;        
}__attribute__((packed)) RECORD(SHELL_LIST,CMD_UNIT);

typedef struct shell_list_cmd_set
{
    char * set_name;
    char * item_name;         
    int seq_no;            
    int cmd_num;            
    int delay;            
    char * cmdset_desc;        
}__attribute__((packed)) RECORD(SHELL_LIST,CMD_SET);

#endif
